﻿using System.Collections.Generic;


namespace Messenia.Data {
    interface IPersistenceManager {
        void Save<T> (T item);
        void Update<T> (T item);
        void Delete<T> (T item);
        void Delete<T> (IList<T> itemsToDelete);
        IList<T> GetAllObjectsByProxy<T> (string propertyName, string proxyClass, object value, string sortProperty, bool ascending, int idUser);
        IList<T> GetAllObjectsByProxy<T> (string propertyName, string proxyClass, object value, int idUser);
    }
}
